package com.dldata.devtools30.repository.zhibiao;



import com.dldata.devtools30.entity.DevtZbcfgInfoEntity;
import com.dldata.devtools30.entity.DevtZbplanItemEntity;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by ai on 2017/1/11.
 */
@Repository
public interface DevtZbplanItemEntityDao
        extends com.dldata.devtools30.repository.BaseRepository<DevtZbplanItemEntity,String>,
        JpaSpecificationExecutor<DevtZbplanItemEntity> {
    
    @Query("select t from DevtZbplanItemEntity t where t.planid = ?1 order by xh ")
    public List<DevtZbplanItemEntity> getAllByPlanId(String planId);
    
    
}
